$OpenBSD: patch-avidemux_ADM_videoFilter_ADM_vidFlux_cpp,v 1.2 2012/08/20 11:51:00 pascal Exp $
--- avidemux/ADM_videoFilter/ADM_vidFlux.cpp.orig	Fri Aug 10 18:40:08 2012
+++ avidemux/ADM_videoFilter/ADM_vidFlux.cpp	Fri Aug 10 18:40:35 2012
@@ -275,7 +275,8 @@ ADMImage	*image,*next,*prev;
 	nextp += src_pitch;
 	destp += dst_pitch;
 
-	#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_FLUX)
+	#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && defined(ASM_FLUX) \
+		&& !defined(__PIC__)
         if(CpuCaps::hasMMX())
         {
 		DoFilter_MMX(currp, prevp, nextp, src_pitch,
@@ -403,7 +404,7 @@ void ADMVideoFlux::DoFilter_C(
 	ADM_assert(ycnt == 0);
 
 }
-#if (defined( ARCH_X86)  || defined(ARCH_X86_64))
+#if (defined( ARCH_X86)  || defined(ARCH_X86_64)) && !defined(__PIC__)
 /*
 	__asm movq mm2, mm0 \
 	__asm movq mm3, mm1 \
